package IoC;

public class Car {
    private FrameWork frameWork;
    public Car (FrameWork frameWork) {
        this.frameWork = frameWork;
    }
    public void init() {
        //启用车
        System.out.println("车启动，需要依赖车身");
        frameWork.init();
    }
}
